$INCLUDE: 'C:\FG\FASTGRAF.FI'

      PROGRAM MAIN

      INTEGER OLD_MODE
      INTEGER ROW
      INTEGER FG_GETMAXX, FG_GETMAXY, FG_GETMODE, FG_MOUSEINI

      CALL FG_INITPM
      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(3)

      IF (FG_MOUSEINI() .LT. 0) THEN
         CALL FG_SETMODE(OLD_MODE)
         CALL FG_RESET
         STOP ' '
      END IF

      CALL FG_SETATTR(7,0,0)
      CALL FG_RECT(0,FG_GETMAXX(),0,FG_GETMAXY())

      CALL FG_SETATTR(12,7,0)
      DO 10 ROW = 0,24
         CALL FG_LOCATE(ROW,34)
         CALL FG_TEXT('example 14-9',12)
10    CONTINUE

      CALL FG_MOUSEVIS(1)
      CALL FG_WAITKEY
      CALL FG_MOUSECUR(#7FFF,#7F00)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
